<?php

/**
 * 控制器基类
 * 
 * @author keluo<pycorvn@yeah.net>
 * @since 2015-01-24
 */
class SCController {
    
    public $view;
     
    public function __construct() {
        $this->view = new SCView();
    }
    
    public function __get($name) {
        
    }
    
    protected function _getInput($field, $type) {
        $inpField = '_' . md5($type . $field);
        return empty($_REQUEST[$inpField]) ? FALSE : $_REQUEST[$inpField];
    }

    protected function _getFidle() {
        $field = SCS::db()->getTableStruct($table);
        return $field;
    }
}